<?php
    $list = mysqli_connect('localhost','root','root','db_info');
    $query = mysqli_query($list,"select * from tb_user where 1 limit 0,10");
    $list = array();
    while($result = mysqli_fetch_assoc($query)){
        $list[] = $result;
    }
    print_r($list) ;
?>